package com.lg.system.wxmessage.entity;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.lg.utils.PageModel;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.lg.common.validate.Insert;
import com.lg.common.validate.Update;
import com.lg.common.validate.Delete;
import com.lg.common.validate.Search;
import com.lg.utils.Page;
/**
 * <p>
 * 
 * </p>
 *
 * @author dl
 * @since 2018-04-12
 */
@TableName("wx_message")
@JsonIgnoreProperties(value={Page.sort,Page.order,Page.rows,Page.total,Page.limit,Page.offset,Page.code},allowSetters=true)
public class WxMessage extends PageModel {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * wx_material 的主键
     */
    @TableField("media_id")
    private Long mediaId;

    /**
     * 素材key
     */
    @TableField("media_key")
    private String mediaKey;
    
    private String content;
    
    private int state;

    /**
     * 消息类型
     */
    @TableField("msg_type")
    private String msgType;

    /**
     * 要发送给哪些用户,号 隔开
     */
    @TableField("user_id")
    private String userId;

    /**
     * 要发送给哪些分组
     */
    @TableField("group_id")
    private Long groupId;

    /**
     * 创建用户id
     */
    @TableField("create_id")
    private Long createId;

    @TableField("modified_id")
    private Long modifiedId;

    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField("gmt_modified")
    private Date gmtModified;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getMediaId() {
        return mediaId;
    }

    public void setMediaId(Long mediaId) {
        this.mediaId = mediaId;
    }
    public String getMediaKey() {
        return mediaKey;
    }

    public void setMediaKey(String mediaKey) {
        this.mediaKey = mediaKey;
    }
    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }
   
    
    public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }
    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }
    public Long getModifiedId() {
        return modifiedId;
    }

    public void setModifiedId(Long modifiedId) {
        this.modifiedId = modifiedId;
    }
    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }
    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
    
    

    public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	@Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WxMessage{" +
        "id=" + id +
        ", mediaId=" + mediaId +
        ", mediaKey=" + mediaKey +
        ", msgType=" + msgType +
        ", userId=" + userId +
        ", groupId=" + groupId +
        ", createId=" + createId +
        ", modifiedId=" + modifiedId +
        ", gmtCreate=" + gmtCreate +
        ", gmtModified=" + gmtModified +
        ", content=" + content +
         ", state=" + state +
        
        "}";
    }
}
